package com.dongdongshop.service.impl;

import com.dongdongshop.mapper.TbLoginMapper;
import com.dongdongshop.pojo.TbLogin;
import com.dongdongshop.service.LoginService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@DubboService
public class LoginServiceImpl implements LoginService {

    @Resource
    private TbLoginMapper loginMapper;

    @Override
    public TbLogin selectByname(String pname) {
        TbLogin tbLogin =loginMapper.selectByName(pname);
        return tbLogin;
    }
}
